<?php
/**
 * Created by zxk7516@foxmail.com  Date: 2017/10/16  Time: 16:21
 */

namespace App;


use Illuminate\Database\Eloquent\Model;

class CourseSubscribe extends Model
{
    protected $fillable = ['id', 'baby_id', 'course_id', 'course_time_id', 'course_time'];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
    ];

    public function baby(){
        return $this->belongsTo(Baby::class,'baby_id');
    }

    public function course(){
        return $this->belongsTo(Course::class,'course_id');
    }
    public function course_time(){
        return $this->belongsTo(CourseTime::class,'course_time_id');
    }


}